const { merge }= require('webpack-merge')
const common = require('./webpack.common')
const devConfig = {
  mode: 'development',
  devtool: 'cheap-module-eval-source-map',
  output: {
    filename: '[name]-[hash:8].js'
  },
  devServer: {
    contentBase: './public',
    port: 9000,
    historyApiFallback: true,
    hotOnly: true,
    host: 'localhost',
  }
}

module.exports = merge(common, devConfig)